<?
$strlangId = (isset($_POST["strLangId"]) ? $_POST["strLangId"] : "es");
require_once(BPATH_INCLUDES.'\includes.php');

$strTitle = TXT0001;
$objSpent = new classSpent();
$arrCategories = $objSpent->getCategories();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
       <style type="text/css">
         @import "<?=BURL_INCLUDES?>/dojo/dijit/themes/soria/soria.css";
			@import "<?=BURL_INCLUDES?>/dojo/dojo/resources/dojo.css";
    	</style>
      <link rel="stylesheet" type="text/css" href="<?=BURL_INCLUDES?>/styles.css" />
      <script>
      	var BURL =  '<?=BURL?>';
      </script>
    	<script type="text/javascript" src="<?=BURL_INCLUDES?>/dojo/dojo/dojo.js" djConfig="parseOnLoad: true"></script>
      <script type="text/javascript" src="<?=BURL_INCLUDES?>/functions.js"></script>
		<script type="text/javascript">dojo.addOnLoad(initialize);</script>
	</head>
	<body class="soria">
		<form id="form" name="form" method="post">
			<input type="hidden" id="hdnProcess" name="hdnProcess" value="<?=$_POST["hdnProcess"]?>" />
			<table class="main" align="center" cellpadding="0" cellspacing="0">
				<tr>
					<td><?require_once(BPATH_INCLUDES."\header.inc");?></td>
				</tr>
				<tr>
					<td>
						<table class="content">
							<tr>
								<td>&nbsp;</td>
							</tr>
                     <tr>
								<td>
									<table align="left" cellpadding="0" cellspacing="0" border="0">
										<tr>
                                 <td class="fieldTitle"><font style="color:#FF0000;font-weight:normal;">(*)</font><?=TXT0002?></td>
											<td><input type="text" id="txtDate", name="txtDate" class="control" size="6" /></td>
											<td><div id="errDate"></div></td>
										</tr>
										<tr class="separator">
											<td colspan="2">&nbsp;</td>
										</tr>
                              <tr>
                                 <td class="fieldTitle"><font style="color:#FF0000;font-weight:normal;">(*)</font><?=TXT0003?></td>
                                 <td><input type="text" id="txtValue", name="txtValue" class="control" size="6" /></td>
											<td><div id="errValue"></div></td>
										</tr>
                              <tr class="separator">
											<td colspan="2">&nbsp;</td>
										</tr>
                              <tr>
                                 <td class="fieldTitle"><font style="color:#FF0000;font-weight:normal;">(*)</font><?=TXT0006?></td>
                                 <td>
                                 	<select id="cmbCategory" name="cmbCategory" class="control">
                                 		<?foreach($arrCategories as $objCategory) {?>

                                 			<option value="<?=$objCategory->id?>"><?=$objCategory->name?></option>
													<?}?>
                                 	</select>
                                 </td>
											<td><div id="Category"></div></td>
										</tr>
                              <tr class="separator">
											<td colspan="2">&nbsp;</td>
										</tr>
                              <tr>
                                 <td class="fieldTitle"><?=TXT0004?></td>
                                 <td><textarea id="txtDescription" name="txtDescription" class="control" cols="30" rows="5"></textarea></td>
											<td><div id="divDescription"></div></td>
										</tr>
                              <tr class="separator">
											<td colspan="2">&nbsp;</td>
										</tr>
                              <tr class="separator">
											<td colspan="2">&nbsp;</td>
										</tr>
                              <tr>
											<td colspan="2">&nbsp;</td>
										</tr>
										<tr>
											<td colspan="2" align="right" id="tdSubmit"></td>
											<td><div id="divSubmit"></div></td>
										</tr>
									</table>
								</td>
								<td style="vertical-align: top;" align="right">
                           <table class="historial" cellpadding="0" cellspacing="0">
										<tr>
											<td class="tdTitle"><a href="" class="a_collapse" id="aCollapseHistory">[-]</a>&nbsp;<?=TXT0007?></td>
										</tr>
										<tr>
											<td>
												<table id="tblHistory" name="tblHistory" style="visibility: visible;" width="100%" cellpadding="0" cellspacing="0"></table>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>